package com.esri.core.geodatabase;

import com.esri.core.internal.util.f;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

/* loaded from: classes.dex */
public final class Geopackage {
    private final Geodatabase a;

    static {
        f.a().initialize();
    }

    public Geopackage(String str) throws FileNotFoundException {
        if (str == null) {
            throw new NullPointerException("Path cannot be null.");
        }
        this.a = new Geodatabase(str);
    }

    public List<GeopackageFeatureTable> getGeopackageFeatureTables() {
        ArrayList arrayList = new ArrayList();
        for (String str : this.a.b()) {
            arrayList.add(new GeopackageFeatureTable(str, this));
        }
        return arrayList;
    }

    public GeopackageFeatureTable getGeopackageFeatureTable(String str) {
        return new GeopackageFeatureTable(str, this);
    }

    public List<String> getGeopackageRasterLayers() {
        return this.a.c();
    }

    public void dispose() {
        this.a.dispose();
    }

    protected void finalize() throws Throwable {
        dispose();
    }

    public long getHandle() {
        return this.a.getHandle();
    }

    public String getPath() {
        return this.a.getPath();
    }

    Geodatabase a() {
        return this.a;
    }
}
